package com.atguigu;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

/**
 * @author ran
 * @creat
 */
public class ExcelListener extends AnalysisEventListener<DemoData> {

    //一行一行读取excel内容
    @Override
    public void invoke(DemoData o, AnalysisContext analysisContext) {
        System.out.println("=====" + o);
    }
    @Override//读取表头
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("表头："+headMap);
    }

    @Override//读完之后干嘛
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
